import axiosInstance from "../index";

export const getOrder = async (data) => {
    return axiosInstance({
        url: '/getOrder',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}

export const updateOrder = async (data) => {
    return axiosInstance({
        url: '/updateOrder',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}

export const addOrderProducts = async (data) => {
    return axiosInstance({
        url: '/addOrderProducts',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}



export const deleteOrderProducts = async (data) => {
    return axiosInstance({
        url: '/deleteOrderProducts',
        headers: {
            'Content-Type': 'application/json'
        },
        method: 'post',
        data,
    })
}